while true
 do
 clear
 PS3='Please enter your choice: '
 options=("Base Install" "Subsonic Install" "Extplorer Install" "Edit Transmission-Daemon" "Quit")
 select opt in "${options[@]}" 
 do
     case $opt in
         "Base Install")
             echo "The base install will begin"
	     sudo apt-get install -y slim awesome xorg apache2 php5 transmission-daemon gdebi synaptic alsa default-jdk zip xbmc unzip
             break
             ;;
         "Subsonic Install")
             echo "Subsonic 5.0 will now be downloaded and installed."
             wget http://sourceforge.net/projects/subsonic/files/subsonic/5.0/subsonic-5.0.deb
             sudo dpkg -i subsonic-5.0.deb
	     clear
	     echo "Please configure Subsonic by navigating to"
	     echo "http://localhost:4040"
	     echo "Your default login is admin/admin, please change it after the reset."
	     sleep 10
             break
             ;;
         "Extplorer Install")
             echo "Extplorer files will now be downloaded and installed"
             sudo mkdir /var/www/html/extplorer; cd /var/www/html/extplorer
             sudo wget http://sourceforge.net/projects/extplorer/files/eXtplorer_2.1.5.zip
             sudo unzip eXtplorer_2.1.5.zip; sudo chmod -R 777 /var/www/html/extplorer
	     clear
             echo "Please configure eXtplorer by navigating to"
             echo "http://localhost/extplorer"
             echo "Your default login is admin/admin, please change it."
             sleep 10
	     break
             ;;
	 "Edit Transmission-Daemon")
	     echo "Edit your transmission-daemon at the startup."
	     echo "Edit 'download-dir', 'rpc-password', 'rpc-username'"
	     echo "Change 'rpc-whitelist' to *.*.*.*"
	     echo "Change 'rpc-whitelist-enabled' to false"
	     sudo /etc/init.d/transmission-daemon stop
	     sudo nano /etc/transmission-daemon/settings.json
	     break
	     ;;
         "Quit")
             echo "Thank You. Your computer will now reboot in ten seconds"
	     sleep 10
	     sudo shutdown -r now
             exit
             ;;
         *) echo invalid option;;
     esac
 done
 done
